package MawsonClient.GUI;

import javax.swing.*;
import java.awt.*;
import java.util.Vector;

/**
 * User: Ryan Green
 * Date: Dec 8, 2010
 * Time: 1:12:03 PM
 * Copyright - University of South Australia
 */
public class MawsonComboBox extends JComboBox {
	boolean required;
	private Color defaultColour;

	MawsonComboBox(Vector<String> text, boolean required){
		super(text);

		this.required = required;
		defaultColour = this.getBackground();

		changeColour();
	}

	void changeColour(){
		/*if (required && this.getText().equals("")) {
			this.setBackground(MawsonClient.Config.yellow);
		} else if (defaultValue.equals(this.getText()) && !defaultValue.equals("")){
			this.setBackground(MawsonClient.Config.blue);
		}	else {
			this.setBackground(defaultColour);
		}*/
	}
}
